﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Landscape.WebApp.Internal
{
    public partial class InternalWindows : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.hfUserCode.Value = ((Landscape.WebApp.UIBizObjects.ActiveUser)Session["ACTIVE_USER"]).UserID.ToString();
            }

            switch (Request.QueryString["ctrl"])
            {
                case "ADDCON":
                    {
                        this.pnlAddConstituents.Visible = true;
                        break;
                    }

                case "ADDPMJ":
                    {
                        this.pnlAddPlannedJob.Visible = true;
                        break;
                    }

                case "EMSEH":
                    {
                        this.pnlStatusEntries.Visible = true;
                        break;
                    }

                case "EMFB":
                    {
                        this.pnlEmergencyFeedBack.Visible = true;
                        break;
                    }

                case "US":
                    {
                        this.pnlUsers.Visible = true;
                        break;
                    }

                case "ARH":
                    {
                        this.pnlResponseHistory.Visible = true;
                        break;
                    }

                default:
                    {
                        break;
                    }
            }
        }
    }
}